package com.xydtech.rule.domain;

import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 规则组明细对象 rule_elements_group_detail
 *
 * @author xydtech
 * @date 2024-06-07
 */
public class RuleElementsGroupDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 策略组ID
     */
    @Excel(name = "策略组ID")
    private Long groupId;

    /**
     * 要素清单ID
     */
    @Excel(name = "要素清单ID")
    private Long itemsId;

    /**
     * 策略组名称
     */
    @Excel(name = "策略组名称")
    private String groupName;

    /**
     * 要素名称
     */
    @Excel(name = "要素名称")
    private String elementsName;

    /**
     * 要素项类型 1-数字型 2-字符型
     */
    private String elementsType;

    /**
     * 是否枚举 T-是 F-否
     */
    private String isEnum;

    /**
     * 枚举值编码
     */
    private String enumValue;

    /**
     * 枚举值名称
     */
    private String enumName;

    /**
     * 要素项单位
     */
    private String elementsUnit;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setItemsId(Long itemsId) {
        this.itemsId = itemsId;
    }

    public Long getItemsId() {
        return itemsId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getElementsName() {
        return elementsName;
    }

    public void setElementsName(String elementsName) {
        this.elementsName = elementsName;
    }

    public String getElementsType() {
        return elementsType;
    }

    public void setElementsType(String elementsType) {
        this.elementsType = elementsType;
    }

    public String getIsEnum() {
        return isEnum;
    }

    public void setIsEnum(String isEnum) {
        this.isEnum = isEnum;
    }

    public String getEnumValue() {
        return enumValue;
    }

    public void setEnumValue(String enumValue) {
        this.enumValue = enumValue;
    }

    public String getEnumName() {
        return enumName;
    }

    public void setEnumName(String enumName) {
        this.enumName = enumName;
    }

    public String getElementsUnit() {
        return elementsUnit;
    }

    public void setElementsUnit(String elementsUnit) {
        this.elementsUnit = elementsUnit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("groupId", getGroupId())
                .append("itemsId", getItemsId())
                .append("groupName", getGroupName())
                .append("remark", getRemark())
                .append("elementsName", getElementsName())
                .toString();
    }
}
